//
//  HTAreaChoiceView.h
//  TruckDriver
//
//  Created by Ting Han on 2017/10/10.
//  Copyright © 2017年 Ting Han. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HTAreaModel.h"

typedef enum : NSUInteger {
    HTAreaChoiceTypeStart,//出发地
    HTAreaChoiceTypeDestination,//目的地
} HTAreaChoiceType;

typedef void(^BlockCallBack)(void);

@protocol HTAreaChoiceViewDelegate <NSObject>
@optional

- (void)didChoiceItemWithAreaModel:(HTAreaModel *)areaModel currentIndex:(NSInteger)currentIndex areaChoiceType:(HTAreaChoiceType)areaChoiceType;

- (void)didChoiceItemWithHistory:(HTAreaModel *)areaModel areaChoiceType:(HTAreaChoiceType)areaChoiceType;


@end

@interface HTAreaChoiceView : UIView

@property (nonatomic,weak) id<HTAreaChoiceViewDelegate>delegate;


@property (nonatomic,assign) HTAreaChoiceType areaChoiceType;
//省 = 0，市 = 1，区 = 2，默认0
@property (nonatomic,assign) NSInteger selectedTabIndex;

//dissmiss remove
@property (nonatomic,copy) BlockCallBack blockCallBack;

//设置初始值
- (void)reloadAllData;
@end
